import React, { memo } from 'react'
import { Link } from "react-router-dom"
import Youhui from ".././top/youhui.js"
import photo from "../../../photo/img.png"
import { userleft, userright ,userhistory} from "./token2.module.css"
export default memo(function token2(props) {
    console.log(props)
    return (
        <>
            <Link
                to="/params"
                className={userleft}>
                <div>用户<span>{props.nickname}</span></div>
            </Link>
            <div className={userright}>
                <img  src={photo}/>
            </div>
            <div className={userhistory}>
                <Youhui num={{ number: 3, type: "我的优惠", to: "/login" }} />
                <Youhui num={{ number: 0, type: "浏览记录", to: "/history" }} />
            </div>
        </>


    )
})
